﻿namespace CommonUtils
{
    public class SecretKeyTools
    {
        /// <summary>
        /// 生成SecretKey代码
        /// </summary>
        /// <returns></returns>
        public static string GetSecretKey(string rand)
        {
            var SecretKey = System.Configuration.ConfigurationManager.AppSettings["secretkey"];
            return EncryptTools.MD5Encrypt(SecretKey + rand);
        }
    }
}
